package com.ibeeking.found.upms.s.rest.service;

import com.ibeeking.found.upms.service.common.bo.ShopRolePermissionBO;

import java.util.List;

/**
 * @ClassName IShopRolePermissionService
 * @Description
 * @Author ibeeking
 * @Date 2021-02-22 12:24
 **/
public interface IShopRolePermissionService {

    /**
     * 通过角色id查询权限菜单ids
     *
     * @param roleId
     * @return
     */
    List<ShopRolePermissionBO> queryRolePermissionByRoleId(Long roleId);


    /**
     * 通过角色ids查询权限菜单ids
     *
     * @param roleIds
     * @return
     */
    List<ShopRolePermissionBO> queryRolePermissionByRoleIds(List<Long> roleIds);

    /**
     * 通过权限菜单id查询角色ids
     *
     * @param permissionId
     * @return
     */
    List<ShopRolePermissionBO> queryRolePermissionByPermissionId(Long permissionId);
}
